package com.yanfan.attach.domain.model;

import java.util.Objects;

/**
 * @author caijinkang
 * @date 2023年01月31日 11:16
 */
public class ComboBoxBody {
    /**
     * id
     *
     * @author caijinkang
     * @date 2023/1/31 11:16
     * @param null
     * @return null
     */
    private Integer id;
    /**
     * 编号
     *
     * @author caijinkang
     * @date 2023/1/31 11:17
     * @param null
     * @return null
     */
    private String Number;

    public ComboBoxBody() {
    }

    public ComboBoxBody(Integer id, String number) {
        this.id = id;
        Number = number;
    }

    @Override
    public String toString() {
        return "ComboBoxBody{" + "id=" + id + ", Number='" + Number + '\'' + '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return Number;
    }

    public void setNumber(String number) {
        Number = number;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ComboBoxBody that = (ComboBoxBody) o;
        return Objects.equals(id, that.id) && Objects.equals(Number, that.Number);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, Number);
    }
}
